﻿<%@ Page Language="C#" MasterPageFile="Content.master" AutoEventWireup="true" CodeFile="AddNewProviderWorkShop.aspx.cs"
    Inherits="Provider_AddNewProviderWork" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="30%">
                <asp:Label ID="lblProviderWorkshopId" runat="server"></asp:Label>
            </td>
            <td width="70%">
                <h1>
                    Provider Work Shop</h1>
            </td>
        </tr>
        <tr>
            <td>
                Work Shop Name
            </td>
            <td>
                <asp:TextBox ID="txtWorkShopName" runat="server" Width="250px"></asp:TextBox>
                <div>
                    <asp:RequiredFieldValidator ID="rfvWorkShopName" runat="server" ErrorMessage="Require Work Shop Name"
                        ControlToValidate="txtWorkShopName" Display="Dynamic" ValidationGroup="workshop"></asp:RequiredFieldValidator>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Block No
            </td>
            <td>
                <asp:TextBox ID="txtBlockNo" runat="server" MaxLength="10"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Area Name
            </td>
            <td>
                <asp:TextBox ID="txtAreaName" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Building Name
            </td>
            <td>
                <asp:TextBox ID="txtBuildingName" runat="server" MaxLength="100" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Level No
            </td>
            <td>
                <asp:TextBox ID="txtLevelNo" runat="server" MaxLength="10"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Room No
            </td>
            <td>
                <asp:TextBox ID="txtRoomNo" runat="server" MaxLength="10"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Street
            </td>
            <td>
                <asp:TextBox ID="txtStreetName" runat="server" MaxLength="100"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Post Code
            </td>
            <td>
                <asp:TextBox ID="txtPostCode" runat="server" MaxLength="10"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" ErrorMessage="Require Post Code"
                    ControlToValidate="txtPostCode" ValidationGroup="workshop"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Zone
            </td>
            <td>
                <asp:DropDownList ID="ddlZone" runat="server" AutoPostBack="false">
                    <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                    <asp:ListItem>North</asp:ListItem>
                    <asp:ListItem>East</asp:ListItem>
                    <asp:ListItem>South</asp:ListItem>
                    <asp:ListItem>West</asp:ListItem>
                    <asp:ListItem>Center</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvWorkShopName1" runat="server" ErrorMessage="Choose Zone"
                    ControlToValidate="ddlZone" ValidationGroup="workshop" InitialValue="-1"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Country
            </td>
            <td>
                <asp:TextBox ID="txtCountry" runat="server" MaxLength="50">Singapore</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Status
            </td>
            <td>
                <asp:CheckBox ID="chkWorkShopStatus" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit"
                    ValidationGroup="workshop" />
                &nbsp;<asp:Button ID="btnClearForm" runat="server" CausesValidation="False" OnClick="btnClearForm_Click"
                    OnClientClick="return confirm('Are you sure to clear form?');" Text="Clear" />
            </td>
        </tr>
    </table>
</asp:Content>
